package com.atguigu.book.controller;

import org.junit.Test;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @ClassName: Demo01
 * @Description:
 * @Author: wty
 * @Date: 2022/12/15
 */
@SuppressWarnings({"all"})
public class Demo01 {
    @Test
    public void test() {
        Pattern pattern = Pattern.compile(".{8,}");
        String content = "hsp12311";
        Matcher matcher = pattern.matcher(content);
        while (matcher.find()) {
            System.out.println("找到；" + matcher.group(0));
        }

    }
}
